<?php
	require "settings/config.php";
	require "layout.php";
	require "includes/session.php";
	require "includes/sql_functions.php";
	require "includes/slot_functions.php";
	require "includes/game_functions.php";
	require "includes/scen_functions.php";
	require "includes/misc_functions.php";
	
	oh_require_admin();

	if($_POST['gameid']>0 && $_POST['tablecount']>0)
	{
		oh_game_update($_POST['gameid'], $_POST['tablecount'],  $_POST['maxplayers'],  $_POST['maxgms']);
	}
	
	header('Location: gameinfo.php?game='.$_POST['gameid']);
	
?>